import Vue from 'vue'
import Vuex from 'vuex'

import app from './modules/app'
import user from './modules/user'

// default router permission control
// import permission from './modules/permission'

// dynamic router permission control (Experimental)
import permission from './modules/async-router'
import getters from './getters'
import form from './modules/form'
import Processform from './modules/processform.js'
import Processvariable from './modules/processvariable.js'
import tables from './modules/tables.js'
import formJson from './modules/formJson.js'
import formLayout from './modules/formLayout.js'
import com_config from './modules/com_config.js'
import opinion from './modules/opinion.js'
import apply from './modules/apply.js'
import arrive from './modules/arrive.js'

Vue.use(Vuex)

export default new Vuex.Store({
  modules: {
    app,
    user,
    permission,
    form,
    Processform,
    Processvariable,
    tables,
    formJson,
    formLayout,
    com_config,
    opinion,
    apply,
    arrive
  },
  state: {},
  mutations: {},
  actions: {},
  getters
})
